import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.*;
import javax.swing.UIManager.*;
import com.jtattoo.plaf.smart.*;

public class MafurahaManeno 
{
	
    public static void startup()
    {
	final LoginWindow loginWindow = new LoginWindow();
	
	
	loginWindow.setVisible(true);
	loginWindow.addWindowListener(new WindowAdapter() {
		public void windowClosed(WindowEvent arg0) {
			final MainWindow mainWindow = new MainWindow();
		    mainWindow.setUser(loginWindow.getUser());
		    mainWindow.start();
		    mainWindow.setVisible(true);
		}

	    });
	}
	
    public static void main(String args[])
    {
	try {
	    UIManager.setLookAndFeel("com.jtattoo.plaf.graphite.GraphiteLookAndFeel");
	} catch (Exception e)
	    {
		//UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
	    }

	startup();
    }
}
